namespace Cik.Gapi4Net.Domain.Output
{
    using Core.Json;
    using Newtonsoft.Json;

    [JsonObject]
    public class CursorResult : ICursorResult
    {
        [JsonProperty("currentPageIndex")]
        public int CurrentPageIndex { get; set; }

        [JsonProperty("estimatedResultCount")]
        public string EstimatedResultCount { get; set; }

        [JsonProperty("moreResultsUrl")]
        public string MoreResultsUrl { get; set; }

        [JsonProperty("pages")]
        [JsonConverter(typeof(CustomArrayCreationConverter<IPagesResult, PagesResult>))]
        public IPagesResult[] PagesResults { get; set; }
    }
}